Skip to main content

TIN Check API

Objective

The TIN Check API returns the basic details associated with a Tax Identification Number (TIN).

InputOutput
The user's or organisation's TINThe details corresponding to the given TIN. The complete list of output fields is provided under the Success Response Details section.

API Endpoint

TINCheck

Overview

The API is RESTful and uses standard HTTP verbs and status codes. The responses are in JSON format and you should upload all images and files as form-data through a POST request.

Authentication

You need a unique pair of application ID (appId) and application key (appKey) from HyperVerge to verify your identity for accessing the API.

API Request Details

Method - POST

Headers

ParameterMandatory or OptionalDescriptionAllowed Values
content-type MandatoryThis parameter defines the media type for the request payloadapplication/json
appId MandatoryThe application identifier shared by HyperVerge. You can find the details in the dashboard's credentials tab.This should be a unique value.
appKey MandatoryThe application key shared by HyperVerge. You can find the details in the dashboard's credentials tab.This should be a unique value.
transactionIdMandatoryA unique identifier for tracking a user journeyThis should be both unique and easily associated with the user's journey in your application(s)

Input

The following table provides the complete information on the parameter used in the request body for the API calls.

ParameterDescriptionMandatory or OptionalAllowed ValuesDefault Value
tinNumberThe Tax Identification NumberMandatoryType: String
Format: 12345678-1234
Not Applicable

Sample Request

The following code shows a standard cURL request for the API.

curl --location --request POST 'https://zaf.thomas.hyperverge.co/v1/TINCheck' \
--header 'Content-Type: application/json' \
--header 'appId: <Enter_the_HyperVerge_appId>' \
--header 'appKey: <Enter_the_HyperVerge_appKey>' \
--header 'transactionId: <Enter_the_HyperVerge_transactionID>' \
--data '{
"tinNumber": "<Enter_the_TIN>"
}'

Success Response Sample

The following code is a sample of success response from the API.

{
"status": "success",
"statusCode": "200",
"result": {
"data": {
"taxpayerName": "<Name_of_the_User>",
"cacRegNumber": "<Registration_Number>",
"tinNumber": "<Taxpayer_Identification_Number>",
"jittin": null,
"taxOffice": "<Tax_Office>",
"phoneNumber": "<Phone_Number>",
"email": "<Email_Address>",
"tinType": "<Taxpayer_Type>"
}
},
"metaData": {
"requestId": "<Request_ID>",
"transactionId": "<Transaction_ID>"
}
}

Success Response Details

ParameterTypeDescription
taxpayerNamestringThe name of the taxpayer
cacRegNumberstringThe Corporate Affairs Commission(CAC) registration number of the taxpayer
tinNumberstringThe Tax Identification Number
jittinstringThe Joint Income Tax Identification Number
taxOfficestringThe tax office responsible for the taxpayer
phoneNumberstringThe phone number of the taxpayer
emailstringThe email address of the taxpayer
tinTypestringThe type of the TIN (Individual/Corporate)

Error Response Samples

{
"status": "failure",
"statusCode": 400,
"error": "Please provide a valid TIN Number",
"metaData": {
"requestId": "<Request_ID>",
"transactionId": "<Transaction_ID>"
}
}

Error Response Details

A failure or error response from the module contains a failure status, with a relavant status code and error message. The following table lists all error responses.

Status CodeError MessageError Description
400Please provide a valid TINThe provided TIN number is invalid
400TIN must be in the format 12345678-1234, please check and retryThe provided TIN number isn't in the valid format
401Missing/Invalid credentialsThe request is either missing the mandatory appId and appKey combination or has invalid values
403Access DeniedPlease contact the HyperVerge team for resolution
500Internal Server ErrorPlease check the request headers or contact the HyperVerge team for resolution
Was this helpful?
Ask AIBeta
Hi! How can I help?
Ask me anything about HyperVerge products, APIs, and SDKs.
Try asking: